
import React from "react";
import ReactDOM from "react-dom";
import { HashRouter } from "react-router-dom";
import { Outlet,useOutlet } from '@umijs/max';

const Page: React.FC = () => {

  const outlet = useOutlet();
  const viewportHeight = window.innerHeight - 56* 2 - 88.13;
  return (
    <div className="tc_layout_main"
      style={{minHeight:viewportHeight+'px',backgroundColor:'#fff'}}>
    {/* <HashRouter> */}
      <Outlet />
      {/* {outlet} */}
    {/* </HashRouter> */}
    </div>
  );
};

export default Page;
// export default function Page() {
//   return (
//     <div className="tc_11111">
//     <HashRouter>
//       <Outlet />
//     </HashRouter>
//     </div>
//   );
// }